-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable NPD to run as a Windows Service. #541
Conversation
/sig node |
/cc mcshooter |
@jeremyje: GitHub didn't allow me to request PR reviews from the following users: mcshooter. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @chardch Richard, can you help review this PR? Please let me and Lantao know if you need more help here. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good to me. I left a couple clarifying questions
Thanks Richard for the review! Ping others for review. cc: @liyanhui1228 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Looks like we still need @wangzhen127 for owner approval. /assign @wangzhen127 |
/assign @Random-Liu |
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, not sure I missed any files.
I saw some unused code. Could you clean them up?
/hold |
@Random-Liu Cleaned up the code should be good now. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chardch, jeremyje, liyanhui1228, Random-Liu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The change allows NPD to run as a Windows Service. This is similar to a systemd service on Linux but Windows services allow for control states (pause, continue, etc).
This implementation only allows for running and stopped states since there's no benefit to add support for paused.
To run NPD as a Windows Service you must use the service control,
sc.exe
, to install it, instructions added to the readme. NPD will not support the notion of--register-service
given how it processes flags and the complexity of making this work does is not worth it.Lastly, since this is a significant change to the main loop for NPD, unit tests have been added to catch future regressions.
See #461 for Windows Support and design.